package com.itxckf.service;

import com.itxckf.pojo.DeleteOrderProductsFrom;
import com.itxckf.pojo.Order;
import com.itxckf.pojo.OrderProducts;
import com.itxckf.pojo.Products;

import java.util.List;

public interface OrderService {
    List<Order> getOrder(String name,String sts);

    void updateOrder(Order order);


    /**
     * 获取订单里面的商品
     * @param orderID
     * @return
     */
    List<Products> getOrderProducts(int orderID);

    void addOrderProducts(OrderProducts orderProducts);

    void deleteOrderProducts(DeleteOrderProductsFrom orderProducts);

    void addOrder(Order order);
    int getLastInsertedOrderId();

    Order queryOrder(Short id);
}

